package com.example.backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.backend.dto.BorrowDTO;
import com.example.backend.entity.Borrow;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BorrowMapper extends BaseMapper<Borrow> {
    Page<BorrowDTO> getBorrowPage(Page<BorrowDTO> page, @Param("userId") Long userId);
} 